﻿<%@ page language="C#" autoeventwireup="true" inherits="Spa_weixinreg2, App_Web_whes5evj" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">

<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width"
        name="viewport" />
    <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <link type="text/css" href="css/index.css" rel="stylesheet" />
    <title>会员注册</title>
</head>
<body>
    <form id="form1" runat="server">
    <div class="navmenu">
        <span class="norbtn"><a href="weixinreg2.aspx">
            微信端注册</a></span> <span class="hovbtn"><a href="weixinreg.aspx">门店会员绑定</a></span>
    </div>
    <div id="content">
        <div class="regcon">
            <div class="regconli">
                <asp:DropDownList ID="qy"  class="dropdown-select" runat="server">
                    <asp:ListItem Value="0">请选择区域</asp:ListItem>
                </asp:DropDownList>
            </div>
            <div class="regconli">
                <input name="" type="text" placeholder="请输入真实姓名" value="" runat="server" id="xm"
                    class="txt" /></div>

                          <div class="regconli">
       <%--<input name="" id="ddlSex" runat="server" type="text" placeholder="请输入" value="" class="txt"/>--%>
     <asp:DropDownList ID="ddlSex" name="" class="dropdown-select"
                runat="server">
                <asp:ListItem Value="-1">选择性别</asp:ListItem>
                <asp:ListItem Value="2">男</asp:ListItem>
                <asp:ListItem Value="1">女</asp:ListItem>
            </asp:DropDownList>
       </div>
            <div class="regconli">
                <em>
                    <asp:DropDownList ID="ddlYear"  name=""  class="dropdown-select"  runat="server">
                        <asp:ListItem Value="0">出生年份</asp:ListItem>
                    </asp:DropDownList>
                </em><em>
                    <asp:DropDownList ID="ddlYue" name=""  class="dropdown-select"  runat="server">
                        <asp:ListItem Value="01">出生月份</asp:ListItem>
                        <asp:ListItem Value="01">1月</asp:ListItem>
                        <asp:ListItem Value="02">2月</asp:ListItem>
                        <asp:ListItem Value="03">3月</asp:ListItem>
                        <asp:ListItem Value="04">4月</asp:ListItem>
                        <asp:ListItem Value="05">5月</asp:ListItem>
                        <asp:ListItem Value="06">6月</asp:ListItem>
                        <asp:ListItem Value="07">7月</asp:ListItem>
                        <asp:ListItem Value="08">8月</asp:ListItem>
                        <asp:ListItem Value="09">9月</asp:ListItem>
                        <asp:ListItem Value="10">10月</asp:ListItem>
                        <asp:ListItem Value="11">11月</asp:ListItem>
                        <asp:ListItem Value="12">12月</asp:ListItem>
                    </asp:DropDownList>
                </em><em  style="width: 31%; border-right: none;">
                    <asp:DropDownList ID="ddlDay" name=""  class="dropdown-select"  runat="server">
                        <asp:ListItem Value="01">出生日期</asp:ListItem>
                        <asp:ListItem Value="01">1日</asp:ListItem>
                        <asp:ListItem Value="02">2日</asp:ListItem>
                        <asp:ListItem Value="03">3日</asp:ListItem>
                        <asp:ListItem Value="04">4日</asp:ListItem>
                        <asp:ListItem Value="05">5日</asp:ListItem>
                        <asp:ListItem Value="06">6日</asp:ListItem>
                        <asp:ListItem Value="07">7日</asp:ListItem>
                        <asp:ListItem Value="08">8日</asp:ListItem>
                        <asp:ListItem Value="09">9日</asp:ListItem>
                        <asp:ListItem Value="10">10日</asp:ListItem>
                        <asp:ListItem Value="11">11日</asp:ListItem>
                        <asp:ListItem Value="12">12日</asp:ListItem>
                        <asp:ListItem Value="13">13日</asp:ListItem>
                        <asp:ListItem Value="14">14日</asp:ListItem>
                        <asp:ListItem Value="15">15日</asp:ListItem>
                        <asp:ListItem Value="16">16日</asp:ListItem>
                        <asp:ListItem Value="17">17日</asp:ListItem>
                        <asp:ListItem Value="18">18日</asp:ListItem>
                        <asp:ListItem Value="19">19日</asp:ListItem>
                        <asp:ListItem Value="20">20日</asp:ListItem>
                        <asp:ListItem Value="21">21日</asp:ListItem>
                        <asp:ListItem Value="22">22日</asp:ListItem>
                        <asp:ListItem Value="23">23日</asp:ListItem>
                        <asp:ListItem Value="24">24日</asp:ListItem>
                        <asp:ListItem Value="25">25日</asp:ListItem>
                        <asp:ListItem Value="26">26日</asp:ListItem>
                        <asp:ListItem Value="27">27日</asp:ListItem>
                        <asp:ListItem Value="28">28日</asp:ListItem>
                        <asp:ListItem Value="29">29日</asp:ListItem>
                        <asp:ListItem Value="30">30日</asp:ListItem>
                        <asp:ListItem Value="31">31日</asp:ListItem>
                    </asp:DropDownList>
                </em>
            </div>
            <div class="regconli">
                <input name="" type="text" placeholder="请输入手机号码" value="" runat="server" id="txtPhone"
                    class="txt" /></div>

                      <div class="regconli">
                <input name="" type="text" placeholder="请输入邮箱" value="" runat="server" id="txtEmail"
                    class="txt" /></div>
            <p>
                <span><i class="regconli">
                    <input name="" type="text" placeholder="短信验证码" value="" class="txt" runat="server"
                        id="dx" style="width: 98%" /></i></span> 
 
                        <span class="yanzheng" onclick="check2()" runat="server" id="divT">获取短信验证码</span>
                <asp:Button ID="Button2" Style="display: none;" runat="server" Text="获取短信验证码" class="yanzheng"
                   onclick="Button2_Click"  /></p>
            <div class="btn"  onclick="check()">
               马上注册
            </div>
            <asp:Button ID="Button1" class="btn" Width="100%" Style="display: none;" runat="server"
                Text="领取会员卡"  onclick="Button1_Click"/>
                <asp:Button ID="Button3" class="btn" Width="100%" Style="display: none;" runat="server"
                Text="保存"  />
                <input type="hidden" runat="server" id="numT"  value="0"/>
        </div>
    </div>
    <div style="text-align: center;">
        <asp:Label ID="Label1" runat="server" ForeColor="Green"></asp:Label></div>
    </form>
</body>
</html>
<script>
    setInterval("SetDX()", 1000);
    function check() {
        document.getElementById("Label1").innerHTML = "";
        if (confirm("生日信息一旦填写，无法修改，是否继续?")) {
            document.getElementById("Button1").click();
        }
    }

    function check2() {
        document.getElementById("Label1").innerHTML = "";
        var num = document.getElementById("numT").value;
        if (num == 0)
            document.getElementById("Button2").click();
    }

    function SetDX() {
        var num = document.getElementById("numT").value;
        if (num > 0 && num <= 60) {
            // document.getElementById("Button3").click();
            num--;
            document.getElementById("numT").value = num;
            document.getElementById("divT").innerHTML = "(" + num + "秒后重新获取)";
            if (num == 0) {
                document.getElementById("divT").innerHTML = "获取短信验证码";
            }
            // setTimeout("SetDX()", 1000);
        }
    }

</script>
